require 'test/unit'
require 'lib/smppclient/pdu/npi'

class TestNpi < MiniTest::Unit::TestCase

  include SmppClient::Pdu

  def test_values
    assert_equal(0b00000000, Npi::UNKNOWN)
    assert_equal(0b00000001, Npi::ISDN)
    assert_equal(0b00000011, Npi::DATA)
    assert_equal(0b00000100, Npi::TELEX)
    assert_equal(0b00000110, Npi::LAND_MOBILE)
    assert_equal(0b00001000, Npi::NATIONAL)
    assert_equal(0b00001001, Npi::PRIVATE)
    assert_equal(0b00001010, Npi::ERMES)
    assert_equal(0b00001110, Npi::INTERNET)
    assert_equal(0b00010010, Npi::WAP_CLIENT_ID)
  end

end